//
//  ICEEMContactsDataModel.m
//  EasyMoney
//
//  Created by 邓乐 on 2020/1/13.
//  Copyright © 2020 zh. All rights reserved.
//

#import "WDPContactDataModel.h"

@implementation WDPContactDataModel

- (NSString *)getContactId {
    NSString *contactId = [NSString stringWithFormat:@"<[%@]-[%@]>", _name, _originPhone];
    return contactId;
}

@end

@implementation WDPSelectedContactDataModel


+ (instancetype)fromSuperClassObject:(WDPContactDataModel*)superObject {
    if (!superObject) {
        return nil;
    }
    WDPSelectedContactDataModel *model = [[WDPSelectedContactDataModel alloc] init];
    model.name = superObject.name;
    model.phone = superObject.phone;
    model.originPhone = superObject.originPhone;
    
    return model;
}

+ (NSDictionary<NSString *,id> *)modelCustomPropertyMapper
{
    return @{@"Id":@"id"};
}

@end

@implementation WDPContactsDataModel

+ (NSDictionary<NSString *,id> *)modelContainerPropertyGenericClass
{
    return @{@"contacts":[WDPContactDataModel class]};
}

@end
